package com.blogspot.wanyancan.server;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

import com.blogspot.wanyancan.client.GetTimeService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class GetTimeServiceImpl extends RemoteServiceServlet
implements GetTimeService{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public String getTime() {
		DateFormat format = new SimpleDateFormat("yyyy.MM.dd G 'at' HH:mm:ss z");
		return format.format(new Date());
	}
}
